import { ApiProperty } from '@nestjs/swagger';
import { BaseResult } from "@/common/base/base.result";
import { BooleanNumber, EvaluationCategory, SpecificationValueType } from "common/utils/data";

export class SpecificationAllResult extends BaseResult {
  @ApiProperty()
  name: string;

  @ApiProperty()
  desc: string;

  @ApiProperty()
  sort: number;

  @ApiProperty({
    enum: SpecificationValueType
  })
  valueType: SpecificationValueType;

  @ApiProperty()
  extra: any;

  @ApiProperty()
  openSearch: BooleanNumber;

  @ApiProperty({
    enum: EvaluationCategory
  })
  category: EvaluationCategory;

}
